package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class DoctorOnlineBean implements Serializable ,IJsonParser{

	/**
	 *  "campaign_id": 5,
            "create_actor_id": 25,
            "create_time": 1392866110.824772,
            "description": "222222222222",
            "doctor_id": 173,
            "end_time": 138969910073,
            "is_delete": false,
            "is_show": true,
            "start_time": 138959973373,
            "title": "1111111111"
	 */
	private static final long serialVersionUID = 6858017989395180931L;
	private int campaign_id ;//活动ID
	private int create_actor_id ;
	private String create_time ;
	private String description ;
	private int doctor_id ;
	private String end_time ;
	private String start_time ;
	private String title ;
	private UserActorBean doctor ;
	private boolean is_delete ;
	private boolean is_show ;
	private int status ;
	public int getStatus() {
		return status;
	}
	public int getCampaign_id() {
		return campaign_id;
	}
	public void setCampaign_id(int campaign_id) {
		this.campaign_id = campaign_id;
	}
	public boolean isIs_delete() {
		return is_delete;
	}
	public void setIs_delete(boolean is_delete) {
		this.is_delete = is_delete;
	}
	public boolean isIs_show() {
		return is_show;
	}
	public void setIs_show(boolean is_show) {
		this.is_show = is_show;
	}
	public int getCreate_actor_id() {
		return create_actor_id;
	}
	public void setCreate_actor_id(int create_actor_id) {
		this.create_actor_id = create_actor_id;
	}
	public String getCreate_time() {
		return create_time;
	}
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getDoctor_id() {
		return doctor_id;
	}
	public void setDoctor_id(int doctor_id) {
		this.doctor_id = doctor_id;
	}
	public String getEnd_time() {
		return end_time;
	}
	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}
	public String getStart_time() {
		return start_time;
	}
	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public UserActorBean getDoctor() {
		return doctor;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, DoctorOnlineBean.class);
		}
		return null;
	}

}
